#define _CRT_SECURE_NO_WARNINGS 1 
#include<stdio.h>
#include<string.h>
void reverse(char *str)
{
	int len = strlen(str);
	char *left = str;
	char *right =str+len - 1;
	while (left < right)
	{
		char temp = *left;
		*left = *right;
		*right = temp;
		left++;
		right--;
	}
}
int main()
{
	char arr[30] = { 0 };
	scanf("%[^\n]s", arr);
	reverse(arr);
	printf("%s", arr);
	
	return 0;
}